<extend name='Index/index' />
<block name="main">
<div id="tou">
    <li>
        <i class="icon-home home-icon"></i>
        <a href="<{:U('Index/index')}>">首页</a>
    </li>
    <li>>></li>
    <li class="active">分配权限</li>
</div>
<br>
	<div class="row">
		<div class="col-md-12">
			<p>
				给 <b><{$users.name}></b> 分配权限
			</p>
			
			<form action="<{:U('AdminUser/saverole')}>" method='post'>
			<p style="width:600px">
				<volist name="list" id="vo">
					<input type="checkbox" name="role[]"  value="<{$vo.id}>" <if condition="in_array($vo['id'],$role) eq true">checked</if>><{$vo.name}>
					&nbsp;
					&nbsp;
					&nbsp;
				</volist>
			</p>
			<input type="hidden" name="uid" value="<{$users.id}>">
			<input type="submit" value="保存" class="btn btn-primary">

			</form>
	
		</div>
	</div>

	
</block>